<script lang="ts">
import { initImUserSig } from './imlogin';
// 必填信息
const config = {
  userID: "", // User ID
  SDKAppID: 1400631976, // Your SDKAppID
  secretKey: "", // Your secretKey
};
uni.$chat_userID = config.userID;
uni.$chat_SDKAppID = config.SDKAppID;
uni.$chat_secretKey = config.secretKey;
uni.$chat_userSig = "";
uni.$chat_logined = false;
uni.$im_logined = false;
uni.$im_loging = false;

export default {
  onLaunch: function () {
	  if(uni.getStorageSync('userId')){
		  initImUserSig({}, (res)=>{})
	  }
  },
 onShow: function() {
      console.log('App Show')
  },
 onHide: function() {
      console.log('App Hide')
  }
};
</script>
<style lang="scss">
	@import "./uni.scss";
/*每个页面公共css */
uni-page-body,
html,
body,
page {
  width: 100% !important;
  height: 100% !important;
  overflow: scroll;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}

//设置圆角
checkbox.round .wx-checkbox-input,
checkbox.round .uni-checkbox-input {
  border-radius: 100upx;
}

//设置背景色
checkbox.red[checked] .wx-checkbox-input,
checkbox.red.checked .uni-checkbox-input {
  background-color: #FF6430 !important;
  border-color: #FF6430 !important;
  color: #ffffff !important;
}
</style>